﻿#region Using Directives

    using System;
    using System.Collections.Generic;

#endregion

namespace MarketPulse.BusinessLogic.Legacy
{
    
    /// <summary>
    /// Class used to provide details from an answer option as arguments for the Response Changed event
    /// </summary>
    public class ResponseChangedEventArgs : EventArgs
    {
        #region Constructors

            /// <summary>
            /// Default constructor for this class
            /// </summary>
            public ResponseChangedEventArgs()
            {
                ResponseText = string.Empty;
                Score = 0.0;
                Number = 0;
                Dependant = 0;
            }

            /// <summary>
            /// Overloaded constructor that sets some properties based on the values supplied
            /// </summary>
            public ResponseChangedEventArgs(string responseText, double score, int number, int dependant)
            {
                ResponseText = responseText;
                Score = score;
                Number = number;
                Dependant = dependant;
            }

        #endregion

        #region Properties

            /// <summary>The number of the question responded to</summary>
            public int Number { get; set; }

            /// <summary>The text for the response selected</summary>
            public string ResponseText { get; set; }

            /// <summary>The score for the response selected</summary>
            public double Score { get; set; }

            /// <summary>The ID's of questions dependant on the response selected</summary>
            public int Dependant { get; set; }

        #endregion
    }

}
